package examples.zip;

import org.metaworks.dao.Database;

public class Zip extends Database<IZip> implements IZip{

	String code;
		public String getCode(){ return code; }
		public void setCode(String code){ this.code = code; }

	String addr1;
		public String getAddr1(){ return addr1; }
		public void setAddr1(String addr1){ this.addr1 = addr1; }

	String addr2;
		public String getAddr2(){ return addr2; }
		public void setAddr2(String addr2){ this.addr2 = addr2; }

	public void create() throws Exception{
		createDatabaseMe();
	}

	public void save() throws Exception{
		syncToDatabaseMe();
	}

	public Object find() throws Exception{

		return databaseMe();
	}

	public void delete() throws Exception{
		deleteDatabaseMe();
	}

}